home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1
/
Ian and Stuart's One (Australia).iso
/
Australasian Legends
/
Commercial
/
Rainbow Hill
/
MacDOS™ 2.0.0
/
batches
/
dupl.bat
< prev
next >
Wrap
DOS Batch File
|
1994-06-30
|
569b
|
26 lines
@echo off
! dupl.bat Batch file to duplicate a folder or a file
!
! dupl name
!
! where 'name' is the item to be duplicated. The name can be preceded by
! a path and a volume ID.
!
! dupl.bat executes duplfile and dupldir
!
! Copyright © 1994 by Rainbow Hill Pty Ltd. All rights reserved.
!
! ensure that the first parameter is there and that the second one is not
set doserr=13
if not "%2 " == " " goto ERR_LBL
if "%1 " == " " goto ERR_LBL
! do the duplication
if existdir "%1" dupldir "%1"
duplfile "%1"
! it never returns
:ERR_LBL
show %doserr%